// 静态页面路由
const staticRouter = [
  {
    path: '/',
    redirect: '/index'
  }, {
    path: '/index',
    name: 'index',
    alias: '/index',
    component: () => import('@/views/AppIndex')
  }, {
    path: '/about',
    name: 'about',
    alias: '/about',
    component: () => import('@/views/AppAbout')
  }, {
    path: '/account',
    name: 'account',
    alias: '/account',
    props: true,
    redirect: '/account/order',
    component: () => import('@/views/AppAccount'),
    children: [{
      path: 'order',
      name: 'order',
      component: () => import('@/views/part/account/AccountOrder')
    }, {
      path: 'download',
      name: 'download',
      component: () => import('@/views/part/account/AccountDownload')
    }, {
      path: 'address',
      name: 'address',
      component: () => import('@/views/part/account/AccountAddress')
    }, {
      path: 'detail',
      name: 'detail',
      component: () => import('@/views/part/account/AccountDetail')
    }]
  }, {
    path: '/loginRegister/:active',
    props: true,
    name: 'loginRegister',
    alias: '/loginRegister/:active',
    component: () => import('@/views/AppLoginRegister')
  }, {
    path: '/login',
    name: 'login',
    alias: '/login',
    redirect: '/loginRegister/login'
  }, {
    path: '/register',
    name: 'register',
    alias: '/register',
    redirect: '/loginRegister/register'
  }, {
    path: '/shopList/:type/:search',
    name: 'shopList',
    alias: '/shopList/:type/:search',
    props: true,
    component: () => import('@/views/AppShopList')
  }, {
    path: '/shopDetail/:id',
    name: 'shopDetail',
    alias: '/shopDetail/:id',
    props: true,
    component: () => import('@/views/AppShopDetail')
  }, {
    path: '/toOrder/:goodId/:subGoodId/:count',
    name: 'toOrder',
    alias: '/toOrder/:goodId/:subGoodId/:count',
    props: true,
    component: () => import('@/views/AppToOrder')
  }, {
    path: '/test',
    name: 'test',
    component: () => import('@/views/AppTest')
  }, {
    path: '/test2',
    name: 'test2',
    component: () => import('@/views/AppTest2')
  }, {
    path: '/403',
    name: '403',
    component: () => import('@/views/error/AppError403')
  }, {
    path: '/500',
    name: '500',
    component: () => import('@/views/error/AppError500')
  }, {
    path: '*',
    name: '404',
    component: () => import('@/views/error/AppError404')
  }
]

export default staticRouter
